.class Lcom/brixd/niceapp/activity/BaseDetailActivity$29$1;
.super Ljava/lang/Object;
.source "BaseDetailActivity.java"

# interfaces
.implements Lretrofit/Callback;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/activity/BaseDetailActivity$29;->onClick(Landroid/view/View;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lretrofit/Callback",
        "<",
        "Lorg/json/JSONObject;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$29;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/activity/BaseDetailActivity$29;)V
    .registers 2
    .param p1, "this$1"    # Lcom/brixd/niceapp/activity/BaseDetailActivity$29;

    .prologue
    .line 1084
    iput-object p1, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$29$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$29;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public failure(Lretrofit/RetrofitError;)V
    .registers 4
    .param p1, "arg0"    # Lretrofit/RetrofitError;

    .prologue
    .line 1088
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "bravoApp failure:"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {p1}, Lretrofit/RetrofitError;->getMessage()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/zuiapps/suite/utils/log/LogUtil;->e(Ljava/lang/String;)V

    .line 1089
    const v0, 0x7f0c0071

    invoke-static {v0}, Lcom/brixd/niceapp/util/ToastUtils;->show(I)V

    .line 1090
    iget-object v0, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$29$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$29;

    iget-object v0, v0, Lcom/brixd/niceapp/activity/BaseDetailActivity$29;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    # invokes: Lcom/brixd/niceapp/activity/BaseDetailActivity;->resetRequest()V
    invoke-static {v0}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->access$3000(Lcom/brixd/niceapp/activity/BaseDetailActivity;)V

    .line 1091
    return-void
.end method

.method public bridge synthetic success(Ljava/lang/Object;Lretrofit/client/Response;)V
    .registers 3

    .prologue
    .line 1084
    check-cast p1, Lorg/json/JSONObject;

    invoke-virtual {p0, p1, p2}, Lcom/brixd/niceapp/activity/BaseDetailActivity$29$1;->success(Lorg/json/JSONObject;Lretrofit/client/Response;)V

    return-void
.end method

.method public success(Lorg/json/JSONObject;Lretrofit/client/Response;)V
    .registers 7
    .param p1, "result"    # Lorg/json/JSONObject;
    .param p2, "arg1"    # Lretrofit/client/Response;

    .prologue
    .line 1095
    const-string v0, "bravoApp success"

    invoke-static {v0}, Lcom/zuiapps/suite/utils/log/LogUtil;->i(Ljava/lang/String;)V

    .line 1096
    invoke-virtual {p1}, Lorg/json/JSONObject;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/zuiapps/suite/utils/log/LogUtil;->i(Ljava/lang/String;)V

    .line 1097
    iget-object v0, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$29$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$29;

    iget-object v0, v0, Lcom/brixd/niceapp/activity/BaseDetailActivity$29;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    invoke-virtual {v0}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->getContext()Landroid/content/Context;

    move-result-object v0

    instance-of v0, v0, Lcom/brixd/niceapp/community/activity/CommunityDetailActivity;

    if-eqz v0, :cond_b0

    .line 1098
    iget-object v0, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$29$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$29;

    iget-object v0, v0, Lcom/brixd/niceapp/activity/BaseDetailActivity$29;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    invoke-static {p1}, Lcom/brixd/niceapp/model/EstimateModel;->parseEstimateModel(Lorg/json/JSONObject;)Lcom/brixd/niceapp/model/EstimateModel;

    move-result-object v1

    # setter for: Lcom/brixd/niceapp/activity/BaseDetailActivity;->mEstimateModel:Lcom/brixd/niceapp/model/EstimateModel;
    invoke-static {v0, v1}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->access$3102(Lcom/brixd/niceapp/activity/BaseDetailActivity;Lcom/brixd/niceapp/model/EstimateModel;)Lcom/brixd/niceapp/model/EstimateModel;

    .line 1103
    :goto_23
    iget-object v0, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$29$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$29;

    iget-object v0, v0, Lcom/brixd/niceapp/activity/BaseDetailActivity$29;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    # getter for: Lcom/brixd/niceapp/activity/BaseDetailActivity;->mEstimateModel:Lcom/brixd/niceapp/model/EstimateModel;
    invoke-static {v0}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->access$3100(Lcom/brixd/niceapp/activity/BaseDetailActivity;)Lcom/brixd/niceapp/model/EstimateModel;

    move-result-object v0

    iget-object v1, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$29$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$29;

    iget-object v1, v1, Lcom/brixd/niceapp/activity/BaseDetailActivity$29;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v1, v1, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v1}, Lcom/brixd/niceapp/model/BaseAppModel;->getId()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/brixd/niceapp/model/EstimateModel;->setAppId(I)V

    .line 1104
    iget-object v0, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$29$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$29;

    iget-object v0, v0, Lcom/brixd/niceapp/activity/BaseDetailActivity$29;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v0, v0, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    iget-object v1, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$29$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$29;

    iget-object v1, v1, Lcom/brixd/niceapp/activity/BaseDetailActivity$29;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    # getter for: Lcom/brixd/niceapp/activity/BaseDetailActivity;->mEstimateModel:Lcom/brixd/niceapp/model/EstimateModel;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->access$3100(Lcom/brixd/niceapp/activity/BaseDetailActivity;)Lcom/brixd/niceapp/model/EstimateModel;

    move-result-object v1

    invoke-virtual {v1}, Lcom/brixd/niceapp/model/EstimateModel;->getUpNum()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/brixd/niceapp/model/BaseAppModel;->setUpTimes(I)V

    .line 1105
    iget-object v0, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$29$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$29;

    iget-object v0, v0, Lcom/brixd/niceapp/activity/BaseDetailActivity$29;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    # getter for: Lcom/brixd/niceapp/activity/BaseDetailActivity;->mUserTrackModel:Lcom/brixd/niceapp/model/UserTrackModel;
    invoke-static {v0}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->access$3200(Lcom/brixd/niceapp/activity/BaseDetailActivity;)Lcom/brixd/niceapp/model/UserTrackModel;

    move-result-object v0

    iget-object v1, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$29$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$29;

    iget-object v1, v1, Lcom/brixd/niceapp/activity/BaseDetailActivity$29;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v1, v1, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v1}, Lcom/brixd/niceapp/model/BaseAppModel;->getId()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/brixd/niceapp/model/UserTrackModel;->addUpId(I)V

    .line 1106
    iget-object v0, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$29$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$29;

    iget-object v0, v0, Lcom/brixd/niceapp/activity/BaseDetailActivity$29;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    # invokes: Lcom/brixd/niceapp/activity/BaseDetailActivity;->resetToolBar()V
    invoke-static {v0}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->access$3300(Lcom/brixd/niceapp/activity/BaseDetailActivity;)V

    .line 1109
    iget-object v0, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$29$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$29;

    iget-object v0, v0, Lcom/brixd/niceapp/activity/BaseDetailActivity$29;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    # invokes: Lcom/brixd/niceapp/activity/BaseDetailActivity;->updateBravoUsers()V
    invoke-static {v0}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->access$3400(Lcom/brixd/niceapp/activity/BaseDetailActivity;)V

    .line 1113
    iget-object v0, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$29$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$29;

    iget-object v0, v0, Lcom/brixd/niceapp/activity/BaseDetailActivity$29;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v1, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$29$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$29;

    iget-object v1, v1, Lcom/brixd/niceapp/activity/BaseDetailActivity$29;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    # getter for: Lcom/brixd/niceapp/activity/BaseDetailActivity;->mEstimateModel:Lcom/brixd/niceapp/model/EstimateModel;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->access$3100(Lcom/brixd/niceapp/activity/BaseDetailActivity;)Lcom/brixd/niceapp/model/EstimateModel;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->onBravoAppSuccess(Lcom/brixd/niceapp/model/EstimateModel;)V

    .line 1115
    iget-object v0, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$29$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$29;

    iget-object v0, v0, Lcom/brixd/niceapp/activity/BaseDetailActivity$29;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    # invokes: Lcom/brixd/niceapp/activity/BaseDetailActivity;->resetRequest()V
    invoke-static {v0}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->access$3000(Lcom/brixd/niceapp/activity/BaseDetailActivity;)V

    .line 1118
    invoke-static {}, Lcom/brixd/niceapp/bus/BusProvider;->getInstance()Lcom/squareup/otto/Bus;

    move-result-object v0

    new-instance v1, Lcom/brixd/niceapp/bus/event/UpdateBravoTimesEvent;

    iget-object v2, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$29$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$29;

    iget-object v2, v2, Lcom/brixd/niceapp/activity/BaseDetailActivity$29;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v2, v2, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v2}, Lcom/brixd/niceapp/model/BaseAppModel;->getId()I

    move-result v2

    iget-object v3, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$29$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$29;

    iget-object v3, v3, Lcom/brixd/niceapp/activity/BaseDetailActivity$29;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    # getter for: Lcom/brixd/niceapp/activity/BaseDetailActivity;->mEstimateModel:Lcom/brixd/niceapp/model/EstimateModel;
    invoke-static {v3}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->access$3100(Lcom/brixd/niceapp/activity/BaseDetailActivity;)Lcom/brixd/niceapp/model/EstimateModel;

    move-result-object v3

    invoke-virtual {v3}, Lcom/brixd/niceapp/model/EstimateModel;->getUpNum()I

    move-result v3

    invoke-direct {v1, v2, v3}, Lcom/brixd/niceapp/bus/event/UpdateBravoTimesEvent;-><init>(II)V

    invoke-virtual {v0, v1}, Lcom/squareup/otto/Bus;->post(Ljava/lang/Object;)V

    .line 1119
    iget-object v0, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$29$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$29;

    iget-object v0, v0, Lcom/brixd/niceapp/activity/BaseDetailActivity$29;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    const/4 v1, 0x1

    iput-boolean v1, v0, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mIsDirty:Z

    .line 1120
    return-void

    .line 1100
    :cond_b0
    iget-object v0, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$29$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$29;

    iget-object v0, v0, Lcom/brixd/niceapp/activity/BaseDetailActivity$29;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    const-string v1, "up_users_detail"

    invoke-virtual {p1, v1}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v1

    invoke-static {p1, v1}, Lcom/brixd/niceapp/model/EstimateModel;->parseEstimateModel(Lorg/json/JSONObject;Lorg/json/JSONArray;)Lcom/brixd/niceapp/model/EstimateModel;

    move-result-object v1

    # setter for: Lcom/brixd/niceapp/activity/BaseDetailActivity;->mEstimateModel:Lcom/brixd/niceapp/model/EstimateModel;
    invoke-static {v0, v1}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->access$3102(Lcom/brixd/niceapp/activity/BaseDetailActivity;Lcom/brixd/niceapp/model/EstimateModel;)Lcom/brixd/niceapp/model/EstimateModel;

    goto/16 :goto_23
.end method
